const getCompany = (data) => { // 修改成后台需要的对象数据结构
  let nData = []
  let arr = []
  let params = ['companyId', 'localCompanyName', 'localDepartmentName', 'lineShort']
  for (let i = 0; i < data.length; i++) {
    nData.push(data[i])
  }
  nData.shift()
  for (let j = 0; j < nData.length; j++) {
    let obj = {}
    obj[params[j]] = nData[j]
    arr.push(obj)
  }
  return arr
}

export default getCompany
